package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.statistic.enums.StatisticsTypeEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 业绩目标导入下载模板
 *
 * @author GuoJun.HU
 * @date 2019/5/7 16:28
 * @since V1.0
 */
@Getter
@Setter
@ToString
public class PerformanceDownloadDTO extends BaseDTO {

    /**
     * 业绩类型：员工的业绩 部门的业绩
     * {@link com.xbongbong.saas.enums.PerformanceTypeEnum}
     */
    @NotBlank(message = "{dto.msg.performanceDownload.type.NotBlank}")
    private String type;
    /**
     * 指标id
     */
    @NotNull(message = "{dto.msg.performanceDownload.setId.NotNull}")
    private Long setId;
    /**
     * 年份
     */
    @NotNull(message = "{dto.msg.performanceDownload.year.NotNull}")
    private Integer year;
    /**
     * 指标类型 1-系统指标 2-自定义指标
     * {@link StatisticsTypeEnum}
     */
    @NotNull(message = "{dto.msg.performanceDownload.statisticsType.NotNull}")
    private Integer statisticsType;

}
